<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="sec"
    uri="http://www.springframework.org/security/tags"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>系统登录</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="jQuery UI Bootstrap theme">




<!-- javascript -->
<script type="text/javascript"
    src="${pageContext.request.contextPath}/libs/jquery-1.9.0.min.js"></script>

   
</head>
<body>


            <div class="block">
                <p class="block-heading">登录系统</p>
                <div class="block-body">
                	${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message}
                    <form class="login_form" id="login_form" name="login_form"  action="${pageContext.request.contextPath}/j_spring_security_check"  method="post">
                        <label>用户名</label>
                        <input type="text" id="username" name="j_username" class="input-block-level"  placeholder="用户名">
                        <label>密码</label>
                        <input type="password" id="password" name="j_password" class="input-block-level"  placeholder="密码">
                        <a href="javascript:void(0)" class="btn btn-primary pull-right" id="sign">登录</a>
                        <!--<label class="remember-me"><input type="checkbox"> Remember me</label>-->
                        <div class="clearfix"></div>
                    </form>
                </div>
            </div>
     
    
</body>
</html>
<script type="text/javascript">
$("#sign").click(
        function() {
            if($("#username").val() == ""){
                $("#username").attr("placeholder","请输入用户名！");
                return ;
            }
            
            if($("#password").val() == ""){
                $("#password").attr("placeholder","请输入密码！");
                return ;
            }
            
            $("#login_form").submit();
        }
      );
</script>
